

    module.exports = function(sequelize, DataTypes) {
        return sequelize.define(
            'users',
            {
                id: {
                    type: DataTypes.INTEGER,
                    primaryKey: true,
                    autoIncrement: true
                },
                username: {
                    type: DataTypes.STRING,
                    field: 'username'
                },
                password: {
                    type: DataTypes.STRING,
                    field: 'password'
                },
                phone: {
                    type: DataTypes.STRING,
                    field: 'phone'
                },
                email: {
                    type: DataTypes.STRING,
                    field: 'email'
                },
                salt: {
                    type: DataTypes.STRING,
                    field: 'salt'
                }
            }
        )
    }